package com.open4cn.simulator.config.controller;

import com.open4cn.simulator.config.server.IUserServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yinxiaopeng
 * @version 1.0.0
 * @company 致景科技
 * @department 飞梭BU/研发
 * @description
 * @Email yinxiaopeng@zj.tech
 * @date 2022-02-19 17:02
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private IUserServer userServer;

    @GetMapping("/{id}")
    public Object getUserInfo(@PathVariable("id") String id) {
        return userServer.getUserInfo(id);
    }

}
